﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CloverNet.Authorization
{
    public class PermissionAttribute : Attribute, IPermissionAttribute
    {
        public object[] Permissions { get; set; }

        public PermissionAttribute(object permission)
        {
            Permissions = new[] { permission };
        }
        public PermissionAttribute(object permission, object permission1)
        {
            Permissions = new[] { permission, permission1 };
        }
        public PermissionAttribute(object permission, object permission1, object permission2)
        {
            Permissions = new[] { permission, permission1, permission2 };
        }
        public PermissionAttribute(params object[] permissions)
        {
            Permissions = permissions;
        }
    }
}
